package com.cx.service;

import com.cx.pojo.Department;
import com.cx.pojo.DepartmentPages;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DepartmentService {

    PageInfo<Department> findAll(DepartmentPages departmentPages);

    Department findById(int id);

    int deleteById(int id);

    int addDept(Department department);

    int updateDept(Department department);

    void patchDel(List<Integer> ids);

    List<Department> getDeptTree();
}
